const { outsideWebhook } = require('./../webhook')

/** 
 * @description 通知开始
*/
function notificationStart(content) {
  global.notificationContent = content
  return outsideWebhook('start', content)
}

/** 
 * @description 通知结束
*/
function notificationEnd(contentString = '') {
  const content = contentString || global.notificationContent
  return outsideWebhook('end', content)
}

module.exports = {
  notificationStart,
  notificationEnd
}